/**
 * \class CTripleSpaces
 * \brief This is a triple space to manipulate triple such as Semantic Web or BigTable.
 * \version 0.3.3
 *
 * \author Woo-Hyun Kim (woorung@nhncorp.com, woorung@gmail.com)
 * \author http://blog.naver.com/wisereign .
 *
 * \date 2008/8/14
 */
#ifndef CTripleSpacesH
#define CTripleSpacesH
//-----------------------------------------------------------------
#include <iostream>
#include <vector>
#include <map>
#include <iterator>

#include "CWorkSpaces.h"

using namespace std;
//-----------------------------------------------------------------
class CTripleSpaces
{
private:
	string host;
	int port;

	string tspace;
	CWorkSpaces *wspace;

protected:

public:
	CTripleSpaces(char *dip, int dport);
	virtual ~CTripleSpaces();

	virtual int open(char *ts);
	virtual int close();

	virtual int write(char *row, char *column, char *data);
	virtual int write(string &row, string &column, string &data);
	virtual int read(string &row, string &column, string &data);
	virtual int take(string &row, string &column, string &data);
};
//-----------------------------------------------------------------
#endif
